package cn.silver.module.system.bean;

import cn.silver.framework.mybatis.bean.BusBean;
import cn.silver.module.system.domain.SysPost;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AutoMapper(target = SysPost.class)
@EqualsAndHashCode(callSuper = true)
@Schema(name = "PostModel", title = "岗位信息对象")
public class PostBean extends BusBean implements Serializable {

    @Schema(title = "岗位类型")
    @NotBlank(message = "岗位类型不能为空")
    private String type;

}
